package org.tank.strategy;

import lombok.Data;

import java.util.Comparator;
@Data
public class Cat implements Comparator<Cat> {

    private Integer height;

    public Cat(Integer height){
        this.height=height;
    }


    @Override
    public int compare(Cat o1, Cat o2) {
        return o1.height-o2.height;
    }
}
